package com.crawler.crawler.service;

import com.crawler.crawler.domain.Book;
import com.crawler.crawler.util.FileDownload;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * sobookServer类
 */
public interface SobookCrawlerServer {


    /**
     * 读取图书页面
     *
     * @param url
     */
    public void getBookInfo(String url, int page, String filePath);

    /**
     * 读取图书地址
     *
     * @param url
     */
    public List<String> getBookList(String url);

    /**
     * 得到页数
     *
     * @param url
     */
    public int getPages(String url);

    public String sobook();
}
